#include "Test.h"
#include <QMenu>
#include <QGraphicsSceneContextMenuEvent>
Test::Test(QDeclarativeItem *parent): QDeclarativeItem(parent)
{
}

void Test::contextMenuEvent(QGraphicsSceneContextMenuEvent *event)
{
        QMenu mymenu;
        mymenu.addAction(new QAction(tr("Test"),0));
        mymenu.exec(event->pos().toPoint());
}
